package cn.lingyangwl.agile.auth.model.rqrs;

import cn.lingyangwl.agile.auth.constants.SmsEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel("发送验证码")
public class SendCodeReq {
    /** 验证码 */
    @ApiModelProperty(value = "验证码", required = true)
    @NotEmpty(message = "请输入验证码")
    private String captcha;

    /**
     * @see SmsEnum
     */
    @ApiModelProperty(value = "发送验证码操作的类型", required = true)
    @NotNull(message = "type")
    private Integer type;

    @ApiModelProperty(value = "生成验证码时候, 后端返回给前端的uuid", required = true)
    @NotEmpty(message = "uuid")
    private String uuid;

    /** 给谁发送验证码, 可以是手机号或者邮箱 */
    @ApiModelProperty(value = "手机号或者邮箱", required = true)
    @NotEmpty(message = "not to")
    private String to;
}
